package com.example.xitong;

import android.content.Intent;
import android.os.Bundle;

import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


public class school extends Fragment {

    ConstraintLayout constraintLayout;
    View view;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_school, container, false);
        // Inflate the layout for this fragment
        setView(view);
        return view;
    }
    public void setView(View view){
        this.view = view;
        constraintLayout = view.findViewById(R.id.con10);
        constraintLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent();
                intent.setClass(getActivity(), school_shequ.class);
                startActivity(intent);
            }
        });
    }
}